import org.junit.Test;

public class ItHeiMa {

    public class Person{
        private String name;
        private char sex;
        private Integer age;
        private double height;
        private boolean married;

        public Person() {
        }

        public Person(String name, char sex, Integer age, double height, boolean married) {
            this.name = name;
            this.sex = sex;
            this.age = age;
            this.height = height;
            this.married = married;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public char getSex() {
            return sex;
        }

        public void setSex(char sex) {
            this.sex = sex;
        }

        public Integer getAge() {
            return age;
        }

        public void setAge(Integer age) {
            this.age = age;
        }

        public double getHeight() {
            return height;
        }

        public void setHeight(double height) {
            this.height = height;
        }

        public boolean isMarried() {
            return married;
        }

        public void setMarried(boolean married) {
            this.married = married;
        }

        @Override
        public String toString() {
            return "Person{" +
                    "name='" + name + '\'' +
                    ", sex=" + sex +
                    ", age=" + age +
                    ", height=" + height +
                    ", married=" + married +
                    '}';
        }
    }

    @Test
    public void test1(){
        System.out.println("java是一门跨平台的计算机语言");
        System.out.println("被称为一次编写，处处运行");
    }

    @Test
    public void test2(){
        Person yang = new Person("杨济旺", '男', 22, 1.76, false);
        System.out.println(yang.getName());
        System.out.println(yang.getSex());
        System.out.println(yang.getAge());
        System.out.println(yang.getHeight());
        System.out.println(yang.isMarried());
    }

    @Test
    public void test3(){
        byte b = 1;
        short s = 2;
        int i = 3;
        long l = 4;
        float f = 1;
        double d = 2.2;
        char c = '男';
        boolean flag = false;

        System.out.println(b);
        System.out.println(s);
        System.out.println(i);
        System.out.println(l);
        System.out.println(f);
        System.out.println(d);
        System.out.println(c);
        System.out.println(flag);
    }
}
